const path = require("path");

function resolve(dir) {
    return path.join(__dirname, dir);
}

module.exports = {
    lintOnSave: true,
    chainWebpack: config => {
        config.resolve.alias.set("@", resolve("src"));
    },
    // 全局scss配置
    css: {
        loaderOptions: {
            scss: {
                additionalData: `@import "~@/assets/scss/global.scss";`
            },
        }
    }
    // end
};
